import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 申请入党前确认
export function verifyDy(params){
    return axios({
        url: assessCheckApi.verifyDy,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
// 发起入党申请
export function initBzFlow(data){
    return axios({
        url: assessCheckApi.initBzFlow,
        method:'post' ,
        data:data,
        url_2:'outside',
    })
}
// 党务-入党申请提交接口
export function submitFlow(data){
    return axios({
        url: assessCheckApi.submitFlow,
        method:'post' ,
        data:data,
        url_2:'outside',
    })
}
// 环节名称集合
export function hjmclist(params){
    return axios({
        url: assessCheckApi.hjmclist,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
// 查询当前用户的党员发展记录
export function selectdyfzjl(params){
    return axios({
        url: assessCheckApi.selectdyfzjl,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
// minio-上传附件
export function fjupload(data){
    return axios({
      url: assessCheckApi.fjupload,
      method:'post' ,
      data:data,
      url_2:'outside',
      // responseType: 'arraybuffer'
    })
  }
  // 附件资源库-编辑
  export function fjedit(data){
    return axios({
      url: assessCheckApi.fjedit,
      method:'put' ,
      data:{...data},
      url_2:'outside',
    })
  }
  // 附件删除
  export function deleleMinioFile(params){
    return axios({
      url: assessCheckApi.deleleMinioFile,
      method:'get' ,
      params:{...params},
      url_2:'outside',
    })
  }
  // 打开文档-服务端-只读
  export function openFile(params){
    return axios({
      url: assessCheckApi.openFile,
      method:'get' ,
      params:{...params},
      url_2:'outside',
    })
  }
  // minio-下载附件
  export function downLoadOa(params){
    return axios({
      url: assessCheckApi.downLoadOa,
      method:'get' ,
      params:{...params},
      url_2:'outside',
      responseType: 'arraybuffer'
    })
  }
    // 附件资源库-分页列表查询
    export function fjlist(params){
        return axios({
          url: assessCheckApi.fjlist,
          method:'get' ,
          params:{...params},
          url_2:'outside',
        })
      }

